//
//  HHPLiveModel.m
//  HHPLiveVideo
//
//  Created by 韩红坡 on 2017/4/25.
//  Copyright © 2017年 韩红坡. All rights reserved.
//

#import "HHPLiveModel.h"

@implementation HHPLiveModel
- (Class)cellClass
{
    if (self.cellType == LiveCellTypeLiving) {
        return NSClassFromString(@"HHPLivingViewCell");
    } else {
        return NSClassFromString(@"HHPHotLiveCell");
    }
}

- (CGFloat)cellHeight
{
    if (self.cellType == LiveCellTypeLiving) {
        return ScreenHeight;
    } else {
        return HHPLayoutRate(465);
    }
}

- (UIImage *)starImage
{
    if (self.starlevel) {
        return [UIImage imageNamed:[NSString stringWithFormat:@"girl_star%ld", self.starlevel]];
    }
    return nil;
}

@end
